package cum.spring;

public class HelloSpring {
    //通过hello属性，该属将通过Spring框架进行设置
    private String hello = null;

    /**
     * 输出方法，从Spring配置文件中获取属性并输出
     */
    public void print(){
        System.out.println("Spring say:,"+this.getHello() + "!");
    }

    private String getHello() {
        return hello;
    }
    public void setHello(String hello){
        this.hello = hello;
    }
}
